
package hasthi.wsdm;

import hasthi.common.HasthiException;
import hasthi.common.ManagementNotifier;
import hasthi.common.constants.WSDMConstants.SystemState;

import java.util.HashMap;

import javax.xml.namespace.QName;


public class SimpleSystemHandle extends ManagedServiceHandle{


    public SimpleSystemHandle(QName name) throws HasthiException {
        super(name, name,name.getLocalPart(), new HashMap<QName, Object>());
    }

    


    public Object getConfiguration(QName name) {
        return "TestConfiguration";
    }

    public SystemState getCurrentSystemState() {
        return SystemState.IdleState;
    }

    public SystemState[] getLastStateTransition() {
        return new SystemState[]{SystemState.BusyState,SystemState.IdleState};
    }

   


    public Object getMatric(QName name) throws HasthiException {
        // TODO Auto-generated method stub
        return null;
    }

    public void setConfiguration(QName name, Object String) {
    }

    public ManagementNotifier getNotifier() {
        return null;
    }

    public String getSystemEndPoint() {
        return "http://127.0.0.1:5555";
    }

    public void shutDown() {
    }
}

